const { DataTypes } = require('sequelize')

module.exports = {
  id: {
    type: DataTypes.UUID,
    defaultValue: DataTypes.UUIDV4,
    primaryKey: true,
    allowNull: false
  },
  classname: {
    type: DataTypes.STRING(100),
    allowNull: false,
    unique: true
  },
  total: {
    type: DataTypes.INTEGER,
    defaultValue: 0
  },
  isOpen: {
    type: DataTypes.BOOLEAN,
    default: true,
    allowNull: false
  }
}